<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript">
	$(function() {
		var $grid = $('#gard_search_list');
		var $title = '进门登记';
		var $baseUrl = 'security/gard';
		$grid.datagrid({
			title : $title + '列表',
			url : $baseUrl + '/page?sort=createTime,desc',
			fitColumns:true,
			striped : true,
			pagination : true,
			pageSize : 20,
			pageList : [20 ,50, 100, 200 ], 
			dialog : {
				url : $baseUrl,
				name : $title,
				search : {
					width : 600,
					height : 320,
					name : '查询',
					url : 'search',
					buttons : [ $.dialog.buttons.search, '-',$.dialog.buttons.reset, '-', $.dialog.buttons.close, '-' ]
				}
			},
			columns : [ [{
				field : 'id',
				hidden : true
			},{
				field : 'createTime',
				title : '进门时间',
				width : 200
			}, {
				field : 'idNo',
				width : 160,
				title : '身份证号码'
			}, {
				field : 'name',
				width : 200,
				title : '姓名'
			},{
				field : 'sex',
				width : 200,
				title : '性别'
			},{
				field : 'nation',
				width : 200,
				title : '民族'
				
			},{
				field : 'dept',
				width : 200,
				title : '部门'
			},{
				field : 'status',
				width : 200,
				title : '人员类别'
			}			
			]],
			toolbar : [ $.crudgrid.buttons.search,'-',$.crudgrid.buttons.clearSearch,'-', $.crudgrid.buttons.refresh,'-' ]
		});

	});
</script>
<table id="gard_search_list">

</table>